package com.qmctl.rest.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.common.SenderInfoClazz;
import com.qmctl.rest.bean.entroyorder.ReceiverInfoClazz;

import java.io.Serializable;
@SuppressWarnings("serial")
@Entity
@Table(name="tOrdersUserInfo",schema="")
public class OrdersUserInfo implements Serializable{
  @Id
  private String userId;
  private String company;
  private String name;
  private String zipCode;
  private String tel;
  private String mobile;
  private String email;
  private String countryCode;
  private String province;
  private String city;
  private String area;
  private String town;
  private String detailAddress;
  private String remark;
  private String carNo;
  private String cardIdNo;
  //private String returnOrderId;
  public OrdersUserInfo(){
  }
  public OrdersUserInfo(SenderInfoClazz BeanClazz){
    userId = "";
    company = BeanClazz!=null?BeanClazz.getCompany():"";
    name = BeanClazz!=null?BeanClazz.getName():"";
    zipCode = BeanClazz!=null?BeanClazz.getZipCode():"";
    tel = BeanClazz!=null?BeanClazz.getTel():"";
    mobile = BeanClazz!=null?BeanClazz.getMobile():"";
    email = BeanClazz!=null?BeanClazz.getEmail():"";
    countryCode = BeanClazz!=null?BeanClazz.getCountryCode():"";
    province = BeanClazz!=null?BeanClazz.getProvince():"";
    city = BeanClazz!=null?BeanClazz.getCity():"";
    area = BeanClazz!=null?BeanClazz.getArea():"";
    town = BeanClazz!=null?BeanClazz.getTown():"";
    detailAddress = BeanClazz!=null?BeanClazz.getDetailAddress():"";
    remark ="";
    carNo ="";
  }

  public OrdersUserInfo(ReceiverInfoClazz BeanClazz){
	    userId = "";
	    company = BeanClazz!=null?BeanClazz.getCompany():"";
	    name = BeanClazz!=null?BeanClazz.getName():"";
	    zipCode = BeanClazz!=null?BeanClazz.getZipCode():"";
	    tel = BeanClazz!=null?BeanClazz.getTel():"";
	    mobile = BeanClazz!=null?BeanClazz.getMobile():"";
	    email = BeanClazz!=null?BeanClazz.getEmail():"";
	    countryCode = BeanClazz!=null?BeanClazz.getCountryCode():"";
	    province = BeanClazz!=null?BeanClazz.getProvince():"";
	    city = BeanClazz!=null?BeanClazz.getCity():"";
	    area = BeanClazz!=null?BeanClazz.getArea():"";
	    town = BeanClazz!=null?BeanClazz.getTown():"";
	    detailAddress = BeanClazz!=null?BeanClazz.getDetailAddress():"";
	    remark = "";
	    carNo = "";
}
  public OrdersUserInfo(com.qmctl.rest.bean.selldeliveryorder.ReceiverInfoClazz BeanClazz){
	    userId = "";
	    company = BeanClazz.getCompany();
	    name = BeanClazz.getName();
	    zipCode = BeanClazz.getZipCode();
	    tel = BeanClazz.getTel();
	    mobile = BeanClazz.getMobile();
	    email = BeanClazz.getEmail();
	    countryCode = BeanClazz.getCountryCode();
	    province = BeanClazz.getProvince();
	    city = BeanClazz.getCity();
	    area = BeanClazz.getArea();
	    town = BeanClazz.getTown();
	    detailAddress = BeanClazz.getDetailAddress();
	    remark = "";
	    carNo = "";
}
  public OrdersUserInfo(com.qmctl.rest.bean.deliveryorder.SenderInfoClazz BeanClazz) {
	// TODO Auto-generated constructor stub
	    userId = "";
	    company = BeanClazz!=null?BeanClazz.getCompany():"";
	    name = BeanClazz!=null?BeanClazz.getName():"";
	    zipCode = BeanClazz!=null?BeanClazz.getZipCode():"";
	    tel = BeanClazz!=null?BeanClazz.getTel():"";
	    mobile = BeanClazz!=null?BeanClazz.getMobile():"";
	    email = BeanClazz!=null?BeanClazz.getEmail():"";
	    countryCode = BeanClazz!=null?BeanClazz.getCountryCode():"";
	    province = BeanClazz!=null?BeanClazz.getProvince():"";
	    city = BeanClazz!=null?BeanClazz.getCity():"";
	    area = BeanClazz!=null?BeanClazz.getArea():"";
	    town = BeanClazz!=null?BeanClazz.getTown():"";
	    detailAddress = BeanClazz!=null?BeanClazz.getDetailAddress():"";
	    remark = "";
	    carNo = "";
}
public OrdersUserInfo(com.qmctl.rest.bean.deliveryorder.ReceiverInfoClazz BeanClazz) {
	// TODO Auto-generated constructor stub
    userId = "";
    company = BeanClazz.getCompany();
    name = BeanClazz.getName();
    zipCode = BeanClazz.getZipCode();
    tel = BeanClazz.getTel();
    mobile = BeanClazz.getMobile();
    email = BeanClazz.getEmail();
    countryCode = BeanClazz.getCountryCode();
    province = BeanClazz.getProvince();
    city = BeanClazz.getCity();
    area = BeanClazz.getArea();
    town = BeanClazz.getTown();
    detailAddress = BeanClazz.getDetailAddress();
    remark = "";
    carNo = "";
}
public String getUserId(){
    return userId;
  }
  public void setUserId(String sUserId){
    userId = sUserId;
  }
  public String getCompany(){
    return company;
  }
  public void setCompany(String sCompany){
    company = sCompany;
  }
  public String getName(){
    return name;
  }
  public void setName(String sName){
    name = sName;
  }
  public String getZipCode(){
    return zipCode;
  }
  public void setZipCode(String sZipCode){
    zipCode = sZipCode;
  }
  public String getTel(){
    return tel;
  }
  public void setTel(String sTel){
    tel = sTel;
  }
  public String getMobile(){
    return mobile;
  }
  public void setMobile(String sMobile){
    mobile = sMobile;
  }
  public String getEmail(){
    return email;
  }
  public void setEmail(String sEmail){
    email = sEmail;
  }
  public String getCountryCode(){
    return countryCode;
  }
  public void setCountryCode(String sCountryCode){
    countryCode = sCountryCode;
  }
  public String getProvince(){
    return province;
  }
  public void setProvince(String sProvince){
    province = sProvince;
  }
  public String getCity(){
    return city;
  }
  public void setCity(String sCity){
    city = sCity;
  }
  public String getArea(){
    return area;
  }
  public void setArea(String sArea){
    area = sArea;
  }
  public String getTown(){
    return town;
  }
  public void setTown(String sTown){
    town = sTown;
  }
  public String getDetailAddress(){
    return detailAddress;
  }
  public void setDetailAddress(String sDetailAddress){
    detailAddress = sDetailAddress;
  }
  public String getRemark(){
    return remark;
  }
  public void setRemark(String sRemark){
    remark = sRemark;
  }
  public String getCarNo(){
    return carNo;
  }
  public void setCarNo(String sCarNo){
    carNo = sCarNo;
  }
public String getCardIdNo() {
	return cardIdNo;
}
public void setCardIdNo(String cardIdNo) {
	this.cardIdNo = cardIdNo;
}
/*public String getReturnOrderId() {
	return returnOrderId;
}
public void setReturnOrderId(String returnOrderId) {
	this.returnOrderId = returnOrderId;
}*/
@Override
public String toString() {
	return "OrdersUserInfo [userId=" + userId + ", company=" + company
			+ ", name=" + name + ", zipCode=" + zipCode + ", tel=" + tel
			+ ", mobile=" + mobile + ", email=" + email + ", countryCode="
			+ countryCode + ", province=" + province + ", city=" + city
			+ ", area=" + area + ", town=" + town + ", detailAddress="
			+ detailAddress + ", remark=" + remark + ", carNo=" + carNo
			+ ", cardIdNo=" + cardIdNo + "]";
}

}
